
<H2>MANAGE PAGES</H2>
<?php if(empty($pages)) { ?>
	<?php echo __("There are no pages added yet.");?> 
	 <?php echo sprintf(__("Would you like too %s now?",$html->link(__('Add new page'),array('action'=>'admin_add'))))?>
<?php  } else { ?>
<table cellpadding="0" cellspacing="0">
<th>S.No.</th>
<th>Page</th>
<th>Actions</th>
	<?php $i=1;
			foreach($pages as $page) { ?>
	<tr>
	<td><?php echo $i;?> </td>
	<td><?php  echo $page['title'];?> </td>
	<td>
		<?php 
		echo $html->link(__('View'),$page['url'], array('target'=>'blank'));?>|
		<?php echo  $html->link(__('Edit'),array('action'=>'admin_edit',$page['page']));?>|
		<?php echo $html->link(__('Delete'),array('action'=>'admin_delete',$page['page']),null,__('Are you sure to delete?'),true);
		 ?>
	</td>
	</tr>
<?php $i++; } ?>

</table>
<?php echo $html->link(__('Add new page'),array('action'=>'admin_add'));?>		
<?php  } ?>